package com.smartfactory.sail.vo.purchase;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.smartfactory.sail.entity.enums.PurchaseStatusEnum;
import com.smartfactory.sail.entity.enums.PurchaseTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 王巨壁
 * @title: ListPurchaseResp
 * @projectName smart-sail
 * @description: 采购列表
 * @date 2019/8/201:59
 */
@Data
public class ListPurchaseResp {

    @ApiModelProperty(value = "采购编号")
    @TableField("purchaseId")
    private String purchaseCode;

    @ApiModelProperty(value = "原料种类")
    @TableField("itemName")
    private String itemName;

    @ApiModelProperty(value = "下单时间")
    private String createTime;

    @ApiModelProperty(value = "订单类型1.合同订单2.备料订单")
    @TableField("purchaseType")
    private PurchaseTypeEnum purchaseType;

    @ApiModelProperty(value = "状态1.待采购2待入库3已入库")
    private PurchaseStatusEnum status;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "采购单id")
    @TableField("purchaseId")
    private Long purchaseId;
}
